package com.pengtu.gsj.service.system;

import java.util.List;

import com.pengtu.gsj.dao.base.Page;
import com.pengtu.gsj.dao.base.QueryFilter;
import com.pengtu.gsj.entity.app.Role;

/**
 * @author zl
 * @version 创建时间：2017年4月11日 下午3:01:28 类说明
 */
public interface RoleService {

	public Role getRole(String id);

	public Role findRole(String roleName);

	public List<Role> getUseRoles();
	
	public List<Role> getAllRole();

	public void saveRole(Role entity);

	public void deleteRole(String id);

	public List<String> getRoleCategorys();

	public List<String> getRoleIds();

	public List<Role> getRolesBy(String category);

	public Page<Role> findRoles(final Page<Role> page, final QueryFilter filters);
	
	public boolean isRoleNameUnique(String newRoleName, String oldRoleName);

}
